package main

import (
	"flag"
	"fmt"
)
var name string
var age *int

func init()  {
	flag.StringVar(&name,"name1","default every one ","帮助的提示 ")
	age  =flag.Int("age",0,"年龄")

}

func main() {
	hobby:=flag.String("hobby","footbal","爱好")

	flag.Parse()
	fmt.Printf("age=%d\n",*age)
	fmt.Printf("hobby=%s\n",*hobby)
	fmt.Printf("name=%s\n",name)

}


